#ifndef UI_CHATWINDOW_H
#define UI_CHATWINDOW_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QSpacerItem>

QT_BEGIN_NAMESPACE

class Ui_ChatWindow
{
public:
    QWidget *centralWidget;
    QVBoxLayout *verticalLayout;
    QHBoxLayout *statusLayout;
    QLabel *usernameLabel;
    QSpacerItem *horizontalSpacer;
    QLabel *statusLabel;
    QLabel *label;
    QTextEdit *chatDisplay;
    QHBoxLayout *inputLayout;
    QLineEdit *messageInput;
    QPushButton *sendBtn;
    QPushButton *clearBtn;
    QPushButton *saveBtn;
    QMenuBar *menuBar;
    QStatusBar *statusBar;

    void setupUi(QMainWindow *ChatWindow)
    {
        if (ChatWindow->objectName().isEmpty())
            ChatWindow->setObjectName(QString::fromUtf8("ChatWindow"));
        ChatWindow->resize(800, 600);
        centralWidget = new QWidget(ChatWindow);
        centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
        verticalLayout = new QVBoxLayout(centralWidget);
        verticalLayout->setSpacing(6);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        statusLayout = new QHBoxLayout();
        statusLayout->setSpacing(6);
        statusLayout->setObjectName(QString::fromUtf8("statusLayout"));
        usernameLabel = new QLabel(centralWidget);
        usernameLabel->setObjectName(QString::fromUtf8("usernameLabel"));
        usernameLabel->setText(QString::fromUtf8("当前用户:"));

        statusLayout->addWidget(usernameLabel);

        horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        statusLayout->addItem(horizontalSpacer);

        statusLabel = new QLabel(centralWidget);
        statusLabel->setObjectName(QString::fromUtf8("statusLabel"));
        statusLabel->setText(QString::fromUtf8("未连接"));

        statusLayout->addWidget(statusLabel);


        verticalLayout->addLayout(statusLayout);

        label = new QLabel(centralWidget);
        label->setObjectName(QString::fromUtf8("label"));
        label->setText(QString::fromUtf8("聊天内容:"));

        verticalLayout->addWidget(label);

        chatDisplay = new QTextEdit(centralWidget);
        chatDisplay->setObjectName(QString::fromUtf8("chatDisplay"));
        chatDisplay->setReadOnly(true);

        verticalLayout->addWidget(chatDisplay);

        inputLayout = new QHBoxLayout();
        inputLayout->setSpacing(6);
        inputLayout->setObjectName(QString::fromUtf8("inputLayout"));
        messageInput = new QLineEdit(centralWidget);
        messageInput->setObjectName(QString::fromUtf8("messageInput"));
        messageInput->setPlaceholderText(QString::fromUtf8("输入消息，按Enter发送..."));

        inputLayout->addWidget(messageInput);

        sendBtn = new QPushButton(centralWidget);
        sendBtn->setObjectName(QString::fromUtf8("sendBtn"));
        sendBtn->setText(QString::fromUtf8("发送"));

        inputLayout->addWidget(sendBtn);

        clearBtn = new QPushButton(centralWidget);
        clearBtn->setObjectName(QString::fromUtf8("clearBtn"));
        clearBtn->setText(QString::fromUtf8("清空记录"));

        inputLayout->addWidget(clearBtn);

        saveBtn = new QPushButton(centralWidget);
        saveBtn->setObjectName(QString::fromUtf8("saveBtn"));
        saveBtn->setText(QString::fromUtf8("保存记录"));

        inputLayout->addWidget(saveBtn);


        verticalLayout->addLayout(inputLayout);

        ChatWindow->setCentralWidget(centralWidget);
        menuBar = new QMenuBar(ChatWindow);
        menuBar->setObjectName(QString::fromUtf8("menuBar"));
        menuBar->setGeometry(QRect(0, 0, 800, 23));
        ChatWindow->setMenuBar(menuBar);
        statusBar = new QStatusBar(ChatWindow);
        statusBar->setObjectName(QString::fromUtf8("statusBar"));
        ChatWindow->setStatusBar(statusBar);

        retranslateUi(ChatWindow);

        QMetaObject::connectSlotsByName(ChatWindow);
    } // setupUi

    void retranslateUi(QMainWindow *ChatWindow)
    {
        ChatWindow->setWindowTitle(QCoreApplication::translate("ChatWindow", "本地聊天", nullptr));
    } // retranslateUi

};

namespace Ui {
    class ChatWindow: public Ui_ChatWindow {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_CHATWINDOW_H
